﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Tesis2.Models
{
    public class Dano
    {
        [DisplayName("Código daño")]
        [Key]
        public int DanoID { get; set; }

        [Required(ErrorMessage = "El nombre del daño es requerido")]
        [DisplayName("Nombre")]
        public string Nombre { get; set; }

        public string Valor { get; set; }
        public int ValorNum { get; set; }

        //foreign keys
        
        [DisplayName("Unidad")]
        public int UnidadDanoID { get; set; }
        public virtual Parametro UnidadDano { get; set; }

    }
}